<template>
	<view>
		<sell-head @fatherMethod='fatherMethod' :type='type'></sell-head>

		<view class="mian" v-if="type==0">
			<!-- 城市 -->
			<view class="list">
				<view class="left">
					城市
				</view>
				<view class="text">
					<view class="txt">
						上海
						<view class="image">
							<image class="img" src="../../static/Estate/icon.png" mode=""></image>
						</view>
					</view>

				</view>
			</view>
			<view class="list">
				<view class="left">
					详细地址
				</view>
				<view class="text">
					<view class="txt">
						<input type="text" value="" placeholder="街道, 楼号等" />
					</view>
					<!-- <view class="image">
						<image class="img" src="../../static/Estate/icon.png" mode=""></image>
					</view> -->
				</view>
			</view>
			<view class="list">
				<view class="left">
					小区
				</view>
				<view class="text">
					<view class="txt">
						上海
						<view class="image">
							<image class="img" src="../../static/Estate/icon.png" mode=""></image>
						</view>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="left">
					户型
				</view>
				<view class="text">
					<view class="txt">
						请选择
						<view class="image">
							<image class="img" src="../../static/Estate/icon.png" mode=""></image>
						</view>
					</view>

				</view>
			</view>
			<view class="list">
				<view class="left">
					楼层
				</view>
				<view class="text">
					<view class="txt">
						请选择
						<view class="image">
							<image class="img" src="../../static/Estate/icon.png" mode=""></image>
						</view>
					</view>

				</view>
			</view>
			<view class="list">
				<view class="left">
					面积
				</view>
				<view class="text">
					<view class="txt">
						请输入
						<view class="image">
							<view class="" style="color: #000000;margin-left: 10rpx;">
								m²
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="left">
					售价
				</view>
				<view class="text">
					<view class="txt">
						请输入
						<view class="image">
							<view class="" style="color: #000000;margin-left: 10rpx;">
								万
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 称呼 -->
			<view class="list">
				<view class="left">
					称呼
				</view>
				<view class="text">
					<view class="txt">
						<u-radio-group v-model="value1" @change="radioGroupChange">
							<u-radio shape="circle" @change="radioChange" name="先生">先生 </u-radio>
							<u-radio shape="circle" @change="radioChange" name="女生"> 女生 </u-radio>
						</u-radio-group>
					</view>
				</view>
			</view>
			<!-- 号码 -->
			<view class="list">
				<view class="left">
					号码
				</view>
				<view class="text">
					<view class="txt">
						请输入

					</view>
				</view>
			</view>
			<!-- 售房周期 -->
			<view class="list">
				<view class="left">
					售价
				</view>
				<view class="text">
					<view class="txt">
						<input type="text" value="" placeholder="2020-08-08" />
					</view>
				</view>
			</view>

			<!-- 确认出售协议 -->
			<view class="confirm list"  @click="router('/Estate/contract/contract')">
				<u-radio-group v-model="value2" @change="radioGroupChange">
					<u-radio shape="circle" @change="radioChange" name=""> </u-radio>
					确认并同意 《出售协议》
				</u-radio-group>
			</view>

			<!-- 提交 -->
			<view class="footer">
				提交
			</view>
		</view>


		<!-- 房型上传 -->
		<view class="main1" v-if="type==1">
			<view class="box">
				<view class="image">
					<image class="img" src="../../static/Estate/icon_jia.png" mode=""></image>
				</view>
				<view class="txt">
					图片上传
				</view>
			</view>
			<view class="text">
				<view class="txt">
					1.小区环境
				</view>
				<view class="txt ">
					2.房型（厨房、卧室、客厅、厕所、阳台）
				</view>
			</view>
			<!-- 提交按钮 -->
			<view class="submit">
				提交
			</view>
		</view>
		<!-- 房产证上传 -->
		<view class="main1" v-if="type==2">
			<view class="box">
				<view class="image">
					<image class="img" src="../../static/Estate/icon_jia.png" mode=""></image>
				</view>
				<view class="txt">
					图片上传
				</view>
			</view>
			<!-- 提交按钮 -->
			<view class="submit">
				提交
			</view>
		</view>
		<!-- 审核中 -->
		<view class="main2" v-if="type==3">
			审核中
		</view>
	</view>
</template>

<script>
	import sellHead from "../../components/sellHead/sellHead.vue"

	export default {
		components: {
			sellHead
		},
		data() {
			return {
				type: '0',
				value2:true,
				value1:true,
			};
		},
		methods: {
			fatherMethod(type) {
				console.log(type);
				this.type = type
			},
			router(url) {
				this.$u.route({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	.mian {
		margin-top: 40rpx;
	}

	.list {
		width: 95%;
		padding: 20rpx 0;
		margin: auto;
		display: flex;
		justify-content: space-around;
		font-size: 36rpx;
		border-bottom: 3rpx solid #e2e2e2;

		.left {
			text-align: center;
			width: 50%;
		}

		.text {

			width: 50%;
			color: #BFBFBF;
			text-align: center;
			margin: auto;

			.txt {
				text-align: center;
				position: relative;

				input {
					font-size: 24rpx;
				}
			}

			.image {
				position: absolute;
				right: 100rpx;
				top: -5rpx;
				width: 25rpx;
				height: 20rpx;
			}
		}
	}

	.confirm {
		font-size: 26rpx;
		margin: 30rpx auto;
		text-align: center;

	}

	.footer {
		width: 320rpx;
		height: 80rpx;
		background-color: #71A4FF;
		margin: auto;
		border-radius: 50rpx;
		margin-top: 60rpx;
		font-size: 36rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 80rpx;
		font-size: 550;
	}

	.main1 {
		.box {
			width: 80%;
			background-color: #E3E3E3;
			margin: auto;
			padding: 30rpx 0;
			border-radius: 10rpx;
			text-align: center;
			margin-top: 150rpx;

			.image {
				margin: auto;
				text-align: center;
				width: 140rpx;
				height: 140rpx;
			}

			.txt {
				margin-top: 20rpx;
			}
		}

		.text {

			width: 75%;
			margin: auto;
			margin-top: 40rpx;
		}

		.submit {
			width: 400rpx;
			height: 100rpx;
			margin: auto;
			background-color: #FF7100;
			border-radius: 50rpx;
			text-align: center;
			line-height: 100rpx;
			color: #FFFFFF;
			font-size: 36rpx;
			margin-top: 200rpx;
		}
	}
	.main2{
		font-size: 72rpx;
		text-align: center;
		margin-top: 100rpx;
	}
</style>
